package com.example.myspring.Test;

import com.example.myspring.service.StudentService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Test1 {

    @Autowired
    private StudentService ss;

    @Test
    public void test() {


        int a = ss.countForNameOrPwd("张三", "123456");
        int b = ss.countForNameOrPwd("", "123456");
        int c = ss.countForNameOrPwd("张三", "");

        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }
}
